package com.lanting.meetingserver.util;

import java.text.SimpleDateFormat;



public class CommonEnum {
	
	/**
	 * 投票选择方式
	 * */
	public static final int SELECTWAY_SINGLE =0;
	public static final int SELECTWAY_MULTI =1;
	
	/**
	 * 投票状态
	 * */
	public static final int VOTE_STATUS_NOSTART=1;
	public static final int VOTE_STATUS_VOTING =2;
	public static final int VOTE_STATUS_END =3;
	
	/**
	 * 数据排序方向
	 * */
	public static final int ORDERBY_ASC =0;
	public static final int ORDERBY_DESC =1;
	
	/**
	 * 参会人员角色
	 * */
	public static final int MEETING_USER_SPEAKER =0;
	public static final int MEETING_USER_LISTENER =1;
	
	/**
	 * 通知发送方式
	 * */
	public static final int SEND_WAY_MANUAL =0;
	public static final int SEND_WAY_TIMING =1;
	
	/**
	 * 会议状态
	 * */
	public static final int MEETING_STATUS_NEW =0;
	public static final int MEETING_STATUS_RUNNING =1;
	public static final int MEETING_STATUS_END =2;
	public static final int MEETING_STATUS_EXPIRED=3;
	
	/**
	 * 服务器类型
	 * */
	public static final int SERVER_TYPE_INTERNAL =0;
	public static final int SERVER_TYPE_PUBLIC =1;
	public static final int SERVER_TYPE_TEMP =2;
	
	
	/**
	 * 错误级别
	 * */
	public static final int ERROR_LEVEL_ERROR =0;
	public static final int ERROR_LEVEL_FATAL = 1;
	
	
	/**
	 * ppt文件类型
	 * */
	public static final int PPT_FILE_SRC =0;
	public static final int PPT_FILE_BAK =1;
	
	
	public static final int SUCCESS = 9999;
	public static final int SUCCESS_NOBAK = 2000;
	public static final int SUCCESS_BAKED = 2001;
	
	
	/**
	 * 错误代码
	 * */
	public static final int ERROR_CODE_NOUSER = 1000;
	public static final int ERROR_CODE_ANALYSISPARAM_FAILED = 1001;
	public static final int ERROR_CODE_NODATA =1002; 
	public static final int ERROR_CODE_NOMEETING = 1003;
	public static final int ERROR_CODE_NOFILE = 1004;
	public static final int ERROR_CODE_NOBAKFILE = 1005;
	public static final int ERROR_CODE_NOMEETINGUSER = 1006;
	public static final int ERROR_CODE_INSERT = 1007;
	public static final int ERROR_CODE_UPDATE = 1008;
	 
	
	/**
	 * 参会人员是否到会
	 * */
	public static final boolean MEETING_USER_STATUS_FALSE = false;
	public static final boolean MEETING_USER_STATUS_TRUE = true;
	
	/**
	 * 是否已发送邮件邀请
	 * */
	public static final boolean MEETING_USER_ISSENDEMAIL_FALSE = false;
	public static final boolean MEETING_USER_ISSENDEMAIL_TRUE = true;
	
	/**
	 * 时间格式转换
	 * */
	public static final SimpleDateFormat DATEFIMEFORMAT = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
	
	/**
	 * 会议ppt存放目录
	 * */
	public static final String MEETING_PPT_SAVEPATH = "PPTS\\meeting\\PPT\\";
	/**
	 * 参会人员ppt存放目录
	 * */
	public static final String MEETING_PPT_USER_BACKPATH = "PPTS\\meeting\\user\\";
	
	public static final String PPT_SRC_FILENAME_FORMATE = "/PPTS/meeting_%d/ppt_%d/src/%d_%d.zip";
	public static final String PPT_BAK_FILENAME_FORMATE = "/PPTS/meeting_%d/ppt_%d/bak/user_%d/%d_%d.zip";
}
